package dao

import (
	_ "github.com/go-sql-driver/mysql"
	"github.com/jmoiron/sqlx"
)

var (
	ConnString = "root:ecust@tcp(127.0.0.1:3306)/auth"
	Account    = newAccountDao()
	Mail       = newMailDao()
)

func getConn() (*sqlx.DB, error) {
	//return sql.Open("mysql", "outlet_user:ybIKXok7NvcKCyTL@tcp(192.168.60.115:3306)/outlet")
	//return sqlx.Open("mysql", "outlet_user:ybIKXok7NvcKCyTL@tcp(192.168.60.115:3306)/outlet")
	return sqlx.Open("mysql", ConnString)
}
